---
title: 'viteFinal'
sidebar:
  order: 22
  title: viteFinal
---

Parent: [main.js|ts configuration](./main-config.mdx)

Type: `(config: Vite.InlineConfig, options: Options) => Vite.InlineConfig | Promise<Vite.InlineConfig>`

Customize Storybook's Vite setup when using the [Vite builder](../../builders/vite.mdx).

{/* prettier-ignore-start */}

<CodeSnippets path="main-config-vite-final.md" />

{/* prettier-ignore-end */}

## `Options`

Type: `{ configType?: 'DEVELOPMENT' | 'PRODUCTION' }`

There are other options that are difficult to document here. Please introspect the type definition for more information.
